<script setup>
import { ref, computed } from "vue";
import store from "@/store";

const cachedViews = computed(() => {
  return store.getters["cachedView/cachedView"];
});
</script>

<template>
  <router-view v-slot="{ Component }">
    <transition name="fade-transform" mode="out-in" appear>
      <keep-alive :include="cachedViews">
        <component :is="Component"></component>
      </keep-alive>
    </transition>
  </router-view>
</template>

<style lang='less' scoped>
</style>